package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.service.api.lesson.entity.LessonResourceRuleFrame;
import com.yuyou.train.service.api.lesson.entity.LessonResourceRuleRelation;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface ILessonResourceRuleRelationService {
    int deleteByPrimaryKey(String id);
    
    int deleteByLessonId(String lessonId);

    int insert(LessonResourceRuleRelation record);

    LessonResourceRuleRelation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LessonResourceRuleRelation record);
    
    List<LessonResourceRuleRelation> findLesResRuleRel(LessonResourceRuleRelation record);
    
    LessonResourceRuleRelation selectByLessonId(String lessonId);
    
    ResBoolSimpleInfo<String> setRelation(LessonResourceRuleRelation record,List<LessonResourceRuleFrame> frameList);
    
    ResBoolSimpleInfo<String> delAuditUserLesson(String delLessonId)throws Exception;

}